
import service from '../request';

const controller = "WF_ApprovalFlow";


/**
* 
* @param {*} data 
* @returns 
*/
function post(data :any) {
	return service({
		method: 'post',
		url: controller,
		data: data,
	})
}
/*
修改用户
*/
function put(data : any) {
	return service({
		method: 'put',
		url: controller,
		data: data,
	})
}
/*
@查询多条数据
**/
function query(data : any) {
	return service({
		method: 'get',
		url: controller,
		params: data,

	})
}
/**
* 查找单个
* @param {*} data 只有数字
* /user/10
* @returns 
*/
function get(id : number) {
	return service({
		method: 'get',
		url: controller + "/" + id,
		// params: data,　　　　 

	})
}

/**
* 获取全部
* /user/10
* @returns 
*/
function getAll(){
	return service({
		method:'get',
		url:controller+'/getAll',
	});
}

/**
* 
* @param {*} data 
* @returns 
*/
function del(id : number) {
	return service({
		method: 'delete',
		url: controller + "/" + id,
		//params: data,　　　　 

	})
}

export default {
	post,
	del,
	get,
	getAll,
	put,
	query
}